Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Terrain Disappearing #5829

Closed
wants to merge 5 commits into from

Conversation

fluffyfreak
Copy link
Contributor

@fluffyfreak fluffyfreak commented Apr 25, 2024

Fixes #5806 ... if we're lucky

Switched to using the recalculated m_centroid instead of m_clipCentroid which is surprisingly far below the surface on asteroids. I believe some terrains generate heights which are FAR above expected which buries m_clipCentroid much further below the surface than expected.

All of this will need some testing with things to look out for like:

  • terrain disappearing
  • patches appearing and disappearing as you look around
  • terrain not being generated at higher detail

Added comments explaining rough purpose of the centroid to header. Fixed up DEBUG_CENTROIDS rendering and materials
@fluffyfreak
Copy link
Contributor Author

fluffyfreak commented May 7, 2024

@Web-eWorks dammit I did some testing last night and this doesn't 100% fix it, It's much improved but I still get some drop-out 😔

@fluffyfreak fluffyfreak added the WIP label May 7, 2024
@impaktor
Copy link
Member

impaktor commented May 7, 2024

@fluffyfreak I assume it means that the understanding of the bug was mostly correct?

@fluffyfreak
Copy link
Contributor Author

@impaktor it's on the right track, I just don't understand what exactly has changed that it's become a problem suddenly

@impaktor
Copy link
Member

what exactly has changed that it's become a problem suddenly

I assumed this was something that's been in master a long time (since no change has been made to terrain / render in a long time, that I can think of), but was rare (as it's not been reported before).

@fluffyfreak fluffyfreak marked this pull request as draft May 13, 2024 11:05
@fluffyfreak
Copy link
Contributor Author

I'm going to close this for now whilst I rethink the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Terrain textures disappear
2 participants